<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
    <style>
        ol,
        li {
            list-style: none;
        }
    </style>
</head>

<body>


    <div id="app">

        <ol>
            <li v-for="item in students">
                {{item.name}}
            </li>
        </ol>


        <ol>
            <li v-for="value in xs">
                {{ value }}
            </li>
        </ol>


        <ol>
            <li v-for="(value,key,index) in xs">
                {{ value }} ---{{key}} ---{{index}}
            </li>
        </ol>


        <ul>
            <li v-for="n in 10">
                {{ n }}
            </li>
        </ul>
    </div>




    <script>
        var app = new Vue({
            el: "#app",
            data: {
                students: [{
                        name: "李小婉"
                    },
                    {
                        name: "张大锤"
                    },
                    {
                        name: "陈二狗"
                    }
                ],
                xs: {
                    name: "小S",
                    age: 46,
                    height: 158
                }
            }
        })
    </script>

</body>

</html>